<?php


namespace App\Http\Controllers\ApiAdmin;


use App\Http\Controllers\BaseController;
use App\Services\Common\CaptchaService;


class UserController extends BaseController
{
    protected $captchaService;

    public function __construct(CaptchaService $captchaService)
    {
        $this->captchaService=$captchaService;
    }

    public function index(){
        return $this->success($this->captchaService->generate());
    }
}
